package com.ray.bean;

import java.util.Arrays;
import java.util.Map;

import com.google.appengine.repackaged.org.codehaus.jackson.annotate.JsonIgnore;

public class TableColumnConfig {
	private Integer id;
	private String tableName;
	private String hideColumn;
	private String company;
	
	public TableColumnConfig() {
		
	}
	
	public TableColumnConfig(Map<String, Object> map) {
		String id = (String) map.get("id");
		if (id != null) {
			this.id = Integer.valueOf(id);
		}
		this.hideColumn = (String) map.get("hideColumn");
		this.company = (int) map.get("loginCompanyId") + "";
		
		String tableName = (String) map.get("tableName");
		if (tableName != null) {
			this.tableName = tableName;
		}
	}
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getHideColumn() {
		return hideColumn;
	}

	public void setHideColumn(String hideColumn) {
		this.hideColumn = hideColumn;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}
}
